﻿using System.Data.Entity.ModelConfiguration;
using yiCommerce.Core.Domain.Brands;

namespace yiCommerce.Data.Mapping.Brands
{
    public class BrandMapping : EntityTypeConfiguration<Brand>
    {
        public BrandMapping()
        {
            this.ToTable("Brand");
            this.HasKey(m => m.Id);
            this.Property(m => m.Name).IsRequired().HasMaxLength(400);
            this.Property(m => m.Description);
            //this.Property(m => m.MetaKeywords).HasMaxLength(400);
            //this.Property(m => m.MetaDescription);
            //this.Property(m => m.MetaTitle).HasMaxLength(400);
            //this.Property(m => m.PriceRanges).HasMaxLength(400);
            //this.Property(m => m.PageSizeOptions).HasMaxLength(200);
        }
    }
}